package cc.chinagps.gateway.client.handler;

import cc.chinagps.gateway.client.UnitClient;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.socket.nio.NioSocketChannel;

public class ClientNioSocketInitialzer extends ChannelInitializer<NioSocketChannel> {

    private UnitClient client;

    public ClientNioSocketInitialzer(UnitClient client) {
        this.client = client;
    }

    @Override
    protected void initChannel(NioSocketChannel ch) throws Exception {
        client.initChannel(ch);
    }
}
